if local_config.analytics && local_config.analytics.type == 'owa'
  <!-- Start Open Web Analytics Tracker -->
  script
    //<![CDATA[
    var owa_baseUrl = '#{local_config.analytics.url}';
    var owa_cmds = owa_cmds || [];
    owa_cmds.push(['setSiteId', '#{local_config.analytics.id}']);
    owa_cmds.push(['trackPageView']);
    owa_cmds.push(['trackClicks']);
    owa_cmds.push(['trackDomStream']);

    (function() {
      var _owa = document.createElement('script'); _owa.type = 'text/javascript'; _owa.async = true;
      owa_baseUrl = ('https:' == document.location.protocol ? window.owa_baseSecUrl || owa_baseUrl.replace(/http:/, 'https:') : owa_baseUrl );
      _owa.src = owa_baseUrl + 'modules/base/js/owa.tracker-combined-min.js';
      var _owa_s = document.getElementsByTagName('script')[0]; _owa_s.parentNode.insertBefore(_owa, _owa_s);
    }());
    //]]>
  <!-- End Open Web Analytics Code -->
